{extend name="public/common"}

{block name="style"}

<link rel="stylesheet" href="__HOME__/css/good/detail.css">
{/block}

{block name="body"}
<div class="top">
    <div><img style="margin-top: 1px" src="__HOME__/images/good/1.png"/></div>
    <div><img style="margin-top: 5px" src="__HOME__/images/good/1.png"/></div>
    <div><img style="margin-top: 10px" src="__HOME__/images/good/1.png"/></div>
    <div><img style="margin-top: 5px" src="__HOME__/images/good/1.png"/></div>
    <div><img style="margin-top: 1px" src="__HOME__/images/good/1.png"/></div></div>
<div class="viewBox">

    <div class="workContent">
        <p ><img src="__HOME__/images/good/2.png" class="img1"/><span>姓名：</span></p>
        <article>
            {$msg.name|iconv='gbk','utf-8//ignore',### || default='*暂无'}
        </article>
    </div>
    <div class="hurdle"></div>
    <div class="workContent">
        <p><img src="__HOME__/images/good/2.png" class="img1"/><span>学校：</span></p>
        <article>
            {$msg.dx|iconv='gbk','utf-8//ignore',### || default='*暂无'}
        </article>
    </div>
    <div class="hurdle"></div>
    <div class="workContent">
        <p><img src="__HOME__/images/good/2.png" class="img1"/><span>院系：</span></p>
        <article>
            {$msg.xym|iconv='gbk','utf-8//ignore',### || default='*暂无'}
        </article>
    </div>
    <div class="hurdle"></div>
    <div class="workContent">
        <p><img src="__HOME__/images/good/2.png" class="img1"/><span>大类：</span></p>
        <article>
            {$msg.class1|iconv='gbk','utf-8//ignore',### || default='*暂无'}
        </article>
    </div>
    <div class="hurdle"></div>
    <div class="workContent">
        <p><img src="__HOME__/images/good/2.png" class="img1"/><span>项目大类：</span></p>
        <article>
            {$msg.class2|iconv='gbk','utf-8//ignore',### || default='*暂无'}
        </article>
    </div>
    <div class="hurdle"></div>
    <div class="workContent">
        <p><img src="__HOME__/images/good/2.png" class="img1"/><span>一级项目：</span></p>
        <article>
            {$msg.class3|iconv='gbk','utf-8//ignore',### || default='*暂无'}
        </article>
    </div>
    <div class="hurdle"></div>
    <div class="workContent">
        <p><img src="__HOME__/images/good/2.png" class="img1"/><span>二级项目：</span></p>
        <article>
            {$msg.class4|iconv='gbk','utf-8//ignore',### || default='*暂无'}
        </article>
    </div>
    <div class="hurdle"></div>
    <div class="workContent">
        <p><img src="__HOME__/images/good/2.png" class="img1"/><span>成绩：</span></p>
        <article>
            {$msg.certi_achi} 分
        </article>
    </div>
    <div class="hurdle"></div>
    <div class="workContent">
        <p><img src="__HOME__/images/good/2.png" class="img1"/><span>时间：</span></p>
        <article>
            {$msg.certi_time|iconv='gbk','utf-8//ignore',### || default='*暂无'}
        </article>
    </div>
    <div class="hurdle"></div>
    <div class="workContent">
        <p><img src="__HOME__/images/good/2.png" class="img1"/><span>证书：</span></p>
        {empty name="$msg.img"}
        <article>
            *暂无
        </article>
        {else/}
        <img src="{$msg.img}" alt="" width="100" height="150" border="0"  style="margin-left:41vw" onclick='loadImg("{$msg.img}")'/>
        {/empty}
    </div>
</div>
{/block}

{block name="script"}
<script src="http://res.wx.qq.com/open/js/jweixin-1.1.0.js"></script>
<script>
    $('title' ).text('点对点教育VIP学员_成功学员');
    //---微信接口JS-SDK的调用
    wx.config({
        debug: false,
        appId: '{$jsSign.appId}', // 必填，公众号的唯一标识
        timestamp: "{$jsSign['timestamp']}", // 必填，生成签名的时间戳，切记时间戳是整数型，别加引号
        nonceStr: '{$jsSign.nonceStr}', // 必填，生成签名的随机串
        signature: '{$jsSign.signature}', // 必填，签名，见附录1
        jsApiList: [
            'checkJsApi',
            'chooseImage',
            'previewImage',
            'uploadImage',
            'downloadImage',
            'onMenuShareTimeline',
            'onMenuShareAppMessage',
        ]
    });

    wx.ready(function () {
        //分享到朋友圈
        wx.onMenuShareTimeline({
            title: '【点对点教育】成功学员',
            link: 'http://mp.csppat.com/DDDeducation/public/index.php/home/good/index.html',
            imgUrl: 'http://mp.csppat.com/DDDeducation/public/home/images/rank/11.png',
            success: function () {
                // 用户确认分享后执行的回调函数
            },
            cancel: function () {
                // 用户取消分享后执行的回调函数
            }
        });
        //分享给朋友
        wx.onMenuShareAppMessage({
            title: '【点对点教育】成功学员', // 分享标题
            desc: '一份努力，一份收获~~', // 分享描述
            link: 'http://mp.csppat.com/DDDeducation/public/index.php/home/good/index.html', // 分享链接
            imgUrl: 'http://mp.csppat.com/DDDeducation/public/home/images/rank/11.png', // 分享图标
            type: '', // 分享类型,music、video或link，不填默认为link
            dataUrl: '', // 如果type是music或video，则要提供数据链接，默认为空
            success: function () {
                // 用户确认分享后执行的回调函数
            },
            cancel: function () {
                // 用户取消分享后执行的回调函数
            }
        });

    });
    wx.error(function (res) {
        alert('wx.error: '+JSON.stringify(res));
    });
     function loadImg(src){
        var urls=[];
         urls.push(src);
     /*   for(var i in imglist){
            urls[i]=window.location.protocol+'//'+window.location.host+imglist[i];
        }*/
        wx.previewImage({
            current: src,
            urls: urls
        });
    }
</script>
{/block}